<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ page import="model.*"%>
<%
	ProjectModel obj;
	Object temp = request.getAttribute("project");
	if (temp != null) {
		try {
			obj = (ProjectModel) temp;
		} catch (Exception ex) {
			obj = new ProjectModel();
		}
	} else {
		obj = new ProjectModel();
	}
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Update project</title>
<link rel="stylesheet" href="css/common.css" />
<script language="javascript" type="text/javascript" src="js/common.js"></script>
<script language="javascript" type="text/javascript"
	src="js/jquery-1.6.1.min.js"></script>
</head>
<body>
	<form action="project?mode=update" method="get">
		<table class="tblInput" border="1">
			<tr class="inputHeader">
				<td colspan="3" class="inputHeader">Project  Information</td>
			</tr>
			<tr class="trField">
				<td class="tdFieldName">Id </td>				<td class="tdFieldInput">
					<input class="lblInt" type="text" id="id" name="id" readonly="readonly" value="<%=obj.getId()%>" />
				</td>
				<td class="tdErrMsg">					
                </td>			<tr class="trField">
				<td class="tdFieldName">Name </td>			    <td class="tdFieldValue">
                    <span class="lblText"><%=obj.getName()%></span>
				</td></tr>
			<tr class="trField">
				<td class="tdFieldName">Code </td>			    <td class="tdFieldValue">
                    <span class="lblText"><%=obj.getCode()%></span>
				</td></tr>
			<tr class="trField">
				<td class="tdFieldName">Description </td>				    <td class="tdFieldInput">

					<textarea id="description" name="description" rows="5" class="lblTextarea" readonly="readonly"><%=obj.getDescription()%></textarea>
				</td></tr>
			<tr class="trField">
				<td class="tdFieldName">Id Type </td>				<td class="tdFieldValue">
                    <span class="lblInt"><%=obj.getIdType()%></span>
				</td></tr>
			<tr class="trField">
				<td class="tdFieldName">Pm </td>				<td class="tdFieldValue">
                    <span class="lblInt"><%=obj.getPm()%></span>
				</td></tr>
			<tr class="trField">
				<td class="tdFieldName">Is Template </td><td class="tdFieldValue">
					<table class="tblBool">
						<tr class="trBoolSet">
							<td colspan="2" class="tdBoolSet"><input type="checkbox"
								id="ckb_is_template" name="ckb_is_template"
								onchange="toggleControls(['is_template_true', 'is_template_false'])" />Not
								set</td>
						</tr>
						<tr class="trBool">
							<td class="tdBool"><input type="radio"
								id="is_template_true" name="is_template" value="1"
								checked="checked" />Yes</td>
							<td class="tdBool"><input type="radio"
								id="is_template_false" name="is_template" value="0" />No</td>
						</tr>
					</table></td>
				<td class="tdErrMsg"></td></tr>
			<tr class="trField">
				<td class="tdFieldName">Status </td>				<td class="tdFieldValue">
                    <span class="lblInt"><%=obj.getStatus()%></span>
				</td></tr>
			<tr class="trField">
				<td class="tdFieldName">Plan Start Date </td>				<td class="tdFieldValue">
                     <span class="lblDateTime"><%=obj.getPlanStartDate()%></span>   
					</td></tr>
			<tr class="trField">
				<td class="tdFieldName">Plan End Date </td>				<td class="tdFieldValue">
                     <span class="lblDateTime"><%=obj.getPlanEndDate()%></span>   
					</td></tr>
			<tr class="trField">
				<td class="tdFieldName">Real Start Date </td>				<td class="tdFieldValue">
                     <span class="lblDateTime"><%=obj.getRealStartDate()%></span>   
					</td></tr>
			<tr class="trField">
				<td class="tdFieldName">Real End Date </td>				<td class="tdFieldValue">
                     <span class="lblDateTime"><%=obj.getRealEndDate()%></span>   
					</td></tr>
			<tr class="trField">
				<td class="tdFieldName">Created </td>				<td class="tdFieldValue">
                     <span class="lblDateTime"><%=obj.getCreated()%></span>   
					</td></tr>
			<tr class="trField">
				<td class="tdFieldName">Creator </td>				<td class="tdFieldValue">
                    <span class="lblInt"><%=obj.getCreator()%></span>
				</td></tr>
			<tr class="trField">
				<td class="tdFieldName">Updated </td>				<td class="tdFieldValue">
                     <span class="lblDateTime"><%=obj.getUpdated()%></span>   
					</td></tr>
			<tr class="trField">
				<td class="tdFieldName">Updator </td>				<td class="tdFieldValue">
                    <span class="lblInt"><%=obj.getUpdator()%></span>
				</td></tr>
			<tr class="trField">
				<td class="tdFieldName">Deleted </td><td class="tdFieldValue">
					<table class="tblBool">
						<tr class="trBoolSet">
							<td colspan="2" class="tdBoolSet"><input type="checkbox"
								id="ckb_deleted" name="ckb_deleted"
								onchange="toggleControls(['deleted_true', 'deleted_false'])" />Not
								set</td>
						</tr>
						<tr class="trBool">
							<td class="tdBool"><input type="radio"
								id="deleted_true" name="deleted" value="1"
								checked="checked" />Yes</td>
							<td class="tdBool"><input type="radio"
								id="deleted_false" name="deleted" value="0" />No</td>
						</tr>
					</table></td>
				<td class="tdErrMsg"></td></tr>
			<tr class="trField">
				<td class="tdFieldName">Deletion Time </td>				<td class="tdFieldValue">
                     <span class="lblDateTime"><%=obj.getDeletionTime()%></span>   
					</td></tr>
			<tr class="trField">
				<td class="tdFieldName">Id Company </td>				<td class="tdFieldValue">
                    <span class="lblInt"><%=obj.getIdCompany()%></span>
				</td></tr>
			
			<tr class="trInputBottom">
				<td class="trInputBottom" colspan="3">
					<table class="tblSubmit" align="center">
						<tr class="trSubmit">
							<td class="tdSubmit">
								<input type="submit" value="Edit" />
							</td>
						</tr>
					</table></td>
			</tr>
		</table>
	</form>
</body>
</html>